package com.soft.javase.day05.enums;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/22
 */
public class WPS {
    public static void openDocument(DocumentType type) {
        switch (type) {
            case WORD:
                System.out.println("正在打开Word文档");
                break;
            case PPT:
                System.out.println("正在打开PPT演示文稿");
                break;
            case EXCEL:
                System.out.println("正在打开Excel表格");
                break;
            case XMIND:
                System.out.println("正在打开XMind思维导图");
                break;
            default:
                System.out.println("文档类型有误！");
        }
    }

    public static void main(String[] args) {
        openDocument(DocumentType.WORD);
        openDocument(DocumentType.PPT);
        openDocument(DocumentType.EXCEL);
        openDocument(DocumentType.XMIND);
    }
}
